def set_css(control, css_file):
    with open(css_file, 'r') as f:
        control.setStyleSheet(f.read())